package com.dang.service.imp;

import java.util.List;

import com.dang.dao.DAOFactory;
import com.dang.model.Category;

import com.dang.service.CategoryService;

public class CategoryServiceImp implements CategoryService{
	public List<Category> findAll() throws Exception{
		return DAOFactory.getCatgoryDAO().findAll();
	}
	public List<Category> findByParentId(int pid) throws Exception{
		return DAOFactory.getCatgoryDAO().findByParentId(pid);
	}
	
}
